package parts1.lesson30;

import org.springframework.jdbc.datasource.DriverManagerDataSource;

import java.sql.Connection;
import java.sql.SQLException;

public class DemoJdbc {
    public static void main(String[] args) throws SQLException {
        String url="jdbc:mysql://localhost:3306/test";
        String username="root";
        String password="root";
        DriverManagerDataSource source=new DriverManagerDataSource(url,username,password);
        source.setDriverClassName("com.mysql.jdbc.Driver");
        Connection conn=source.getConnection();
        System.out.println(conn);


    }
}
